﻿using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace ALE.SP.TesteWebPartDinamica.WPDinamica
{
    [ToolboxItemAttribute(false)]
    public class WPDinamica : WebPart
    {
        protected override void CreateChildControls()
        {
            LiteralControl lt = new LiteralControl();
            lt.Text = "Isto e uma WebPart automatically add na page";
            this.Controls.Add(lt);
        }
    }
}
